import { Notification } from 'element-ui'

const Notify = {
  success: (message) => {
    Notification({
      title: message,
      type: 'success',
      offset: 100
    })
  },

  error: (message) => {
    Notification({
      title: message,
      type: 'error',
      offset: 100
    })
  },

  warning: (message) => {
    Notification({
      title: message,
      type: 'warning',
      offset: 100
    })
  },

  info: (message) => {
    Notification({
      title: message,
      type: 'info',
      offset: 100
    })
  }
}

export default Notify